<template>
	<div class="success">
		<van-nav-bar :title="title" fixed left-arrow @click-left="back" />
		<div class="content">
			<img :src="success" alt="" class="image-succ">
			<p class="tips">恭喜你，重置密码成功</p>
			<router-link class="button-login" to="/" tag="div">进入首页</router-link>
			<div class="button-register" @click="register">去认证</div>
		</div>
	</div>
</template>

<script>
	import success from "@/assets/img/success.png"
	export default {
		name: "",
		components: {

		},
		data() {
			return {
				title: '注册成功',
				success: success,
				show: false
			}
		},
		mounted() {
			if(this.$route.query.type == 1){
				this.show = show
			}else{
				this.show = false
			}
		},
		methods:{
			back() {
				this.$router.go(-1)
			},
			register(){
				
			}
		}


	}
</script>

<style scoped lang="less">
	.success {
		padding-top: 46px;
		background: #fff;
		position: absolute;
		height: 100%;
		width: 100%;
		bottom: 0;
		.van-nav-bar {
			.van-icon {
				color: #000;
			}
		
			.van-nav-bar__text {
				color: #5C5C5C;
			}
		}

		.content {
			padding-top: 1rem;
			padding: 0 5.4rem;
			

			.button-login {
				height: 2.75rem;
				background: rgba(254, 118, 0, 1);
				border-radius: 2rem;
				font-size: 0.94rem;
				font-family: PingFang SC;
				font-weight: 500;
				color: rgba(255, 255, 255, 1);
				display: flex;
				align-items: center;
				justify-content: center;
				margin-bottom: 1rem;
			}

			.button-register {
				height: 2.75rem;
				border-radius: 2rem;
				font-size: 0.94rem;
				font-family: PingFang SC;
				border: 1px solid rgba(254, 118, 0, 1);
				font-weight: 500;
				color: #FE7600;
				display: flex;
				align-items: center;
				justify-content: center;
			}

			.image-succ {
				width: 8.72rem;
				display: block;
				margin: 4.59rem auto 2rem auto;
			}
			.tips{
				font-size:1.13rem;
				font-family:PingFang SC;
				font-weight:500;
				color:rgba(254,118,0,1);
				line-height:0.75rem;
				text-align: center;
				margin-bottom: 2rem;
			}
		}
	}
</style>
